package com.example.nettyudp.controller;

import com.example.nettyudp.service.impl.NettyServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author FDJ,
 * @date 2020/5/26,
 * @time 13:49
 */
@RestController
@RequestMapping("/")
@Slf4j
public class ClientController {

    @Autowired
    NettyServiceImpl nettyService;

    @GetMapping("/send1")
    public String sendMessage() {
        String message = "200";

        return nettyService.sendMessage(message);
    }

}
